﻿#define _DEBUG
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Xml;
using System.Configuration;


namespace Common
{

    public class ProductFactory
    {
        #region 简单的产品类工厂
        public static Product CreateProduct(string ClassName)
        {
            Product pd = null;
            switch (ClassName)
            {
                case "TMC01":
                    pd = new TMC01(ClassName + ".xml");
                    break;
                default:
                    break;
            }
            return pd;
        }
        #endregion
    }

}
